package com.game.backend.controller.rank;

import com.alibaba.fastjson2.JSONObject;
import com.game.backend.service.rank.RankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rank")
public class RankController {
    @Autowired
    public RankService rankService;

    @RequestMapping("/getlist")
    public JSONObject getRankUsers(Integer page){
        return rankService.getList(page);
    }
}
